package concurrent.automic;

/**
 * \* User: Administrator
 * <p>
 * \* Date: 2020/11/25
 * <p>
 * \* Time: 13:59
 * <p>
 * \* Description:
 * \ 银行账号抽象
 */
public class DebitCard {
    private final String account;

    private int amount;

    public DebitCard(String account, int amount) {
        this.account = account;
        this.amount = amount;
    }

    public String getAccount() {
        return account;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "{ account:" + account + ",amount: " + amount + "}";
    }
}
